
Page({
  data: {
    focus: false,
    price_92: 5,
    price_95: 6,
    result:"92更实惠！"
  },
  bind_input_pice_92: function (e) {
    this.setData({
      price_92: e.detail.value
    })
  },
  bind_input_pice_95: function (e) {
    this.setData({
      price_95: e.detail.value
    })
  },
  oil_submit(){
    let{price_92,price_95}=this.data;
    let money = price_92*6.91-price_95*6.47;
    console.log(money);
    if(money>0){
      this.setData({
        result:"95更实惠！"
      })
    }else{
      this.setData({
        result:"92更实惠！"
      })
    }
  }
  
})
